<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>调查报告</title>
<!-- 引用组件 -->
<t:base type="jquery,idtabs,easyui,dataTables,my97,lhgdialog"></t:base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- 模块js文件 -->
<script type="text/javascript">
//初始化列表
//初始化列表
var initDataTable = function(){
	$('#linkTable').dataTable({
		"bProcessing" : true, //DataTables载入数据时，是否显示‘进度’提示
        "bServerSide" : true, //是否启动服务器端数据导入
        "bStateSave" : false, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态
        "bJQueryUI" : true, //是否使用 jQury的UI theme
        "aLengthMenu" : [5, 10, 15], //更改显示记录数选项
        "iDisplayLength" : 5, //默认显示的记录数
        "bAutoWidth" : true, //是否自适应宽度 update\
        "bScrollCollapse" : false, //是否开启DataTables的高度自适应，当数据条数不够分页数据条数的时候，插件高度是否随数据条数而改变
        "bPaginate" : true, //是否显示（应用）分页器
        "bInfo" : true, //是否显示页脚信息，DataTables插件左下角显示记录数
        "sPaginationType" : "full_numbers", //详细分页组，可以支持直接跳转到某页
        "bSort" : true, //是否启动各个字段的排序功能
        "aaSorting" : [[0, "ASC"]], //默认的排序方式，第3列，升序排列
        "bFilter" : false, //是否启动过滤、搜索功能
        "sPaginationType": "full_numbers",
	    "sAjaxSource":"sys/LoanLink/list",
        "fnServerData":retrieveData,  //自定义数据获取函数
		"aoColumns" : [ {
			"mDataProp" : "id",
			"sTitle" : "序号",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "linkName",
			"sTitle" : "联系人",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "linkRelation",
			"sTitle" : "关系",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				  if(!data){
					  return "";
				  }
			      return top.SYS_BASE_DATA['Loan_Link_Relation_Type_Code'][data];
				}
		}, {
			"mDataProp" : "linkSource",
			"sTitle" : "电话来源",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				  if(!data){
					  return "";
				  }
			      return top.SYS_BASE_DATA['Loan_Link_Source_Code'][data];
				}
		}, {
			"mDataProp" : "linkTel",
			"sTitle" : "电话号码",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "linkTime",
			"sTitle" : "拨打时间",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				var value = '';
				if(_is_empty(data)){
					value = '';
				}else{
					value = new Date(data).format('yyyy-MM-dd');
				}
				
	            return value;
		     }
		}, {
			"mDataProp" : "linkCallStatus",
			"sTitle" : "通话情况",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				  if(!data){
					  return "";
				  }
			      return top.SYS_BASE_DATA['Loan_Link_Call_Status_Code'][data];
				}
		},  {
			"mDataProp" : "linkCallRemark",
			"sTitle" : "通话备注",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center"
			
		}
		/* ,
		  {
			"mDataProp" : "",
			"sTitle" : "操作",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		      var id = row.id,loanStatus=row.loanStatus;
		      var parseStr = '<a href="javascript:updateLinkInfo('+id+');" class="tablelink">修 改</a>&nbsp;';
		      parseStr += '<a href="javascript:dropLinkInfo('+id+');" class="tablelink">删除</a>&nbsp;';
		      return parseStr;
		    }
			
		} */
		
		],
		"oLanguage": {
            "sUrl":"static_resources/language/lang-cn.txt" //这个是国际化，也就是汉化的各种文字数据源，写对url就行了
        }
        
	});
	
	//初始化信用列表
	$('#creditTable').dataTable({
		"bProcessing" : true, //DataTables载入数据时，是否显示‘进度’提示
        "bServerSide" : true, //是否启动服务器端数据导入
        "bStateSave" : false, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态
        "bJQueryUI" : true, //是否使用 jQury的UI theme
        "aLengthMenu" : [5, 10, 15], //更改显示记录数选项
        "iDisplayLength" : 5, //默认显示的记录数
        "bAutoWidth" : true, //是否自适应宽度 update\
        "bScrollCollapse" : false, //是否开启DataTables的高度自适应，当数据条数不够分页数据条数的时候，插件高度是否随数据条数而改变
        "bPaginate" : true, //是否显示（应用）分页器
        "bInfo" : true, //是否显示页脚信息，DataTables插件左下角显示记录数
        "sPaginationType" : "full_numbers", //详细分页组，可以支持直接跳转到某页
        "bSort" : true, //是否启动各个字段的排序功能
        "aaSorting" : [[0, "ASC"]], //默认的排序方式，第3列，升序排列
        "bFilter" : false, //是否启动过滤、搜索功能
        "sScrollX": "100%",
		"sScrollXInner": 1640,
        "sPaginationType": "full_numbers",
	    "sAjaxSource":"sys/LoanCreditLog/list",
        "fnServerData":creRetrieveData,  //自定义数据获取函数
		"aoColumns" : [ {
			"mDataProp" : "id",
			"sTitle" : "序号",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "loanType",
			"sTitle" : "贷款方式",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				  if(!data){
					  return "";
				  }
			      return top.SYS_BASE_DATA['Loan_Credit_Type_Code'][data];
				}
		}, {
			"mDataProp" : "loanAccount",
			"sTitle" : "贷款方",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "loanAmount",
			"sTitle" : "贷款总额（元）",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "loanBalance",
			"sTitle" : "余额（元）",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "loanDeadline",
			"sTitle" : "期限（月）",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "loanPayMonth",
			"sTitle" : "月供款额（元）",
			"sDefaultContent" : "",
			"sClass" : "center"
			
		},  {
			"mDataProp" : "loanStartDate",
			"sTitle" : "放款日期",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				var value = '';
				if(_is_empty(data)){
					value = '';
				}else{
					value = new Date(data).format('yyyy-MM-dd');
				}
				
	            return value;
		     }
			
		},{
			"mDataProp" : "loanEndDate",
			"sTitle" : "到期日期",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
				var value = '';
				if(_is_empty(data)){
					value = '';
				}else{
					value = new Date(data).format('yyyy-MM-dd');
				}
				
	            return value;
		     }
		},{
			"mDataProp" : "loanDefaultAmount",
			"sTitle" : "拖欠金额（元）",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center"
		}
		/* ,
		  {
			"mDataProp" : "",
			"sTitle" : "操作",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		      var id = row.id,loanStatus=row.loanStatus;
		      var parseStr = '<a href="javascript:updateCreditInfo('+id+');" class="tablelink">修 改</a>&nbsp;';
		      parseStr += '<a href="javascript:dropCreditInfo('+id+');" class="tablelink">删除</a>&nbsp;';
		      return parseStr;
		    }
			
		} */
		
		],
		"oLanguage": {
            "sUrl":"static_resources/language/lang-cn.txt" //这个是国际化，也就是汉化的各种文字数据源，写对url就行了
        }
        
	});
	
	$('#inspectTable').dataTable({
		"bProcessing" : true, //DataTables载入数据时，是否显示‘进度’提示
        "bServerSide" : true, //是否启动服务器端数据导入
        "bStateSave" : false, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态
        "bJQueryUI" : true, //是否使用 jQury的UI theme
        "aLengthMenu" : [5, 10, 15], //更改显示记录数选项
        "iDisplayLength" : 5, //默认显示的记录数
        "bAutoWidth" : true, //是否自适应宽度 update\
        "bScrollCollapse" : false, //是否开启DataTables的高度自适应，当数据条数不够分页数据条数的时候，插件高度是否随数据条数而改变
        "bPaginate" : true, //是否显示（应用）分页器
        "bInfo" : true, //是否显示页脚信息，DataTables插件左下角显示记录数
        "sPaginationType" : "full_numbers", //详细分页组，可以支持直接跳转到某页
        "bSort" : true, //是否启动各个字段的排序功能
        "aaSorting" : [[1, "DESC"]], //默认的排序方式，第3列，升序排列
        "bFilter" : false, //是否启动过滤、搜索功能
        "sScrollX": "100%",
		"sScrollXInner": 1640,
        "sPaginationType": "full_numbers",
	    "sAjaxSource":'sys/SysAccessory/list',
        "fnServerData":inspectRetrieveData,  //自定义数据获取函数
		"aoColumns" : [ {
			"mDataProp" : "uid",
			"sTitle" : "操作",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		      return  ( '<a href="javascript:down_load('+row.id+');" class="tablelink">'+'浏览或下载'+'</a>'+'&nbsp;&nbsp;');
		    }
			
		}, {
			"mDataProp" : "accessoryTheme",
			"sTitle" : "主题",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "accessoryClass",
			"sTitle" : "附件类型",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		        return SYS_BASE_DATA['Accessory_Class_Audit_Code'][data]||'';
		     }
		}, {
			"mDataProp" : "accessoryName",
			"sTitle" : "文件名",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		        return '<a href="javascript:top.down_load('+row.id+');">'+data+'</a>';
		     }
		}, {
			"mDataProp" : "addUser",
			"sTitle" : "上传人",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		        return data||'ADMIN';
		     }
		}, {
			"mDataProp" : "addTime",
			"sTitle" : "上传时间",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "accessoryRemark",
			"sTitle" : "备注",
			"sDefaultContent" : "",
			"sClass" : "center"
			
		}
		  
		],
		"oLanguage": {
            "sUrl":"static_resources/language/lang-cn.txt" //这个是国际化，也就是汉化的各种文字数据源，写对url就行了
        }
        
	});
	
	$('#_inspect_detail').dataTable({
		"bProcessing" : true, //DataTables载入数据时，是否显示‘进度’提示
        "bServerSide" : true, //是否启动服务器端数据导入
        "bStateSave" : false, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态
        "bJQueryUI" : true, //是否使用 jQury的UI theme
        "aLengthMenu" : [5, 10, 15], //更改显示记录数选项
        "iDisplayLength" : 5, //默认显示的记录数
        "bAutoWidth" : true, //是否自适应宽度 update\
        "bScrollCollapse" : false, //是否开启DataTables的高度自适应，当数据条数不够分页数据条数的时候，插件高度是否随数据条数而改变
        "bPaginate" : true, //是否显示（应用）分页器
        "bInfo" : true, //是否显示页脚信息，DataTables插件左下角显示记录数
        "sPaginationType" : "full_numbers", //详细分页组，可以支持直接跳转到某页
        "bSort" : true, //是否启动各个字段的排序功能
        "aaSorting" : [[1, "DESC"]], //默认的排序方式，第3列，升序排列
        "bFilter" : false, //是否启动过滤、搜索功能
        "sScrollX": "100%",
		"sScrollXInner": 1640,
        "sPaginationType": "full_numbers",
	    "sAjaxSource":'sys/SysAccessory/list',
        "fnServerData":kcRetrieveData,  //自定义数据获取函数
		"aoColumns" : [ {
			"mDataProp" : "uid",
			"sTitle" : "操作",
			"bSortable": false,
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		      return  ( '<a href="javascript:down_load('+row.id+');" class="tablelink">'+'浏览或下载'+'</a>'+'&nbsp;&nbsp;');
		    }
			
		}, {
			"mDataProp" : "accessoryTheme",
			"sTitle" : "主题",
			"sDefaultContent" : "",
			"sClass" : "center"
		},{
			"mDataProp" : "accessoryName",
			"sTitle" : "文件名",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		        return '<a href="javascript:top.down_load('+row.id+');">'+data+'</a>';
		     }
		}, {
			"mDataProp" : "accessoryClass",
			"sTitle" : "附件类型",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		        return SYS_BASE_DATA['Accessory_Class_Inspect_Code'][data]||'';
		     }
		}, {
			"mDataProp" : "addUser",
			"sTitle" : "上传人",
			"sDefaultContent" : "",
			"sClass" : "center",
			"mRender": function (data, display, row) {
		        return data||'ADMIN';
		     }
		}, {
			"mDataProp" : "addTime",
			"sTitle" : "上传时间",
			"sDefaultContent" : "",
			"sClass" : "center"
		}, {
			"mDataProp" : "accessoryRemark",
			"sTitle" : "备注",
			"sDefaultContent" : "",
			"sClass" : "center"
			
		}
		  
		],
		"oLanguage": {
            "sUrl":"static_resources/language/lang-cn.txt" //这个是国际化，也就是汉化的各种文字数据源，写对url就行了
        }
        
	});
};

//自定义loan_link数据获取函数
var retrieveData = function ( sSource, aoData, fnCallback ) {
		aoData.push({name:"beanProxy[loanId]",value:'${param.loanId}'});
		aoData.push({name:"v2hldghlcib0agugzgf0ysbhy2nlc3m",value:1});
	        $.ajax( {
	                type: "POST", 
	                url: sSource, 
	                cache : false,
	                dataType : "json",
	                data : aoData, 
	                success: function(resp) {
	                	if(resp && resp.state == 200){
	                		fnCallback(resp.datagrid);
	                		return false;
	                	}
	                	fnCallback(null);
	            }
	        });
};

//自定义loan_creditor_log数据获取函数
var creRetrieveData = function ( sSource, aoData, fnCallback ) {
		aoData.push({name:"beanProxy[loanId]",value:'${param.loanId}'});
		aoData.push({name:"v2hldghlcib0agugzgf0ysbhy2nlc3m",value:1});
	        $.ajax( {
	                type: "POST", 
	                url: sSource, 
	                cache : false,
	                dataType : "json",
	                data : aoData, 
	                success: function(resp) {
	                	if(resp && resp.state == 200){
	                		fnCallback(resp.datagrid);
	                		return false;
	                	}
	                	fnCallback(null);
	            }
	        });
};

//自定义数据获取函数附件审核
var inspectRetrieveData = function( sSource, aoData, fnCallback ) {
	   aoData.push({'name':'beanProxy[clientId]','value':'${param.clientId}'});
	   aoData.push({'name':'beanProxy[loanId]','value':'${param.loanId}'});
	   aoData.push({'name':'beanProxy[enable]','value':0});
	   aoData.push({'name':"beanProxy[ownerType]",value:'SH'});
	   aoData.push({'name':"v2hldghlcib0agugzgf0ysbhy2nlc3m",value:1});
        $.ajax( {
                type: "POST", 
                url: sSource, 
                cache : false,
                dataType : "json",
                data : aoData, 
                success: function(resp) {
                	if(resp && resp.state == 200){
                		fnCallback(resp.datagrid);
                		return false;
                	}
                	fnCallback(null);
            }
        });
};

//考察调查附件
var kcRetrieveData = function( sSource, aoData, fnCallback ) {
	   aoData.push({'name':'beanProxy[clientId]','value':'${param.clientId}'});
	   aoData.push({'name':'beanProxy[loanId]','value':'${param.loanId}'});
	   aoData.push({'name':'beanProxy[enable]','value':0});
	   aoData.push({'name':"beanProxy[ownerType]",value:'KC'});
	   aoData.push({'name':"v2hldghlcib0agugzgf0ysbhy2nlc3m",value:1});
        $.ajax( {
                type: "POST", 
                url: sSource, 
                cache : false,
                dataType : "json",
                data : aoData, 
                success: function(resp) {
                	if(resp && resp.state == 200){
                		fnCallback(resp.datagrid);
                		return false;
                	}
                	fnCallback(null);
            }
        });
};


//初始化详情信息
var initPage = function(){
	_set_default_lable_text('sys/Loan/findByPk?pks=${param.loanId}',false);
	//给审核信息页面赋值
	_set_default_lable_text("sys/LoanAudit/find?loanId=${param.loanId}",false);
	//给建议额度页面赋值
	_set_default_lable_text("sys/LoanSug/find?loanId=${param.loanId}",false);
	//给社保页面赋值
	_set_default_lable_text("sys/LoanInsure/find?loanId=${param.loanId}",false);
	//给考察页面赋值
	_set_default_lable_text("sys/LoanInspect/find?loanId=${param.loanId}",false);
};
$(function(){
	$("#usual1 ul").idTabs();
	//给贷款详情页面赋值
	initPage();
	initDataTable();
	
});
</script>

</head>

<body>
	<%-- <input type="hidden" id="loanId" value="${param.loanId}" />
	<input type="hidden" id="clientId" value="${param.clientId}" /> --%>

	<c:choose>
	   <c:when test="!${param.hideTitle}">   
			<div class="place">
				<span>位置：</span>
				<ul class="placeul">
					<li><a href="javascript:void(0)">首页</a></li>
					<li><a href="javascript:void(0)">贷款管理</a></li>
					<li><a href="javascript:void(0)">贷款审批</a></li>
					<li><a href="javascript:void(0)">调查报告</a></li>
				</ul>
			</div>
	   </c:when>
	   <c:otherwise>  
	   <!-- 
			<div class="place">
				<span>贷款审核详情：</span>
			</div>
	    -->
	   </c:otherwise>
	</c:choose>
	
	<div class="formbody">
	<div id="usual1" class="usual">

		<div class="itab" id="itab">
			<ul>
				<li><a href="#tab1" class="selected">贷款基本信息</a></li>
				<li><a href="#tab2">审核信息</a></li>
				<li><a href="#tab3">信用信息</a></li>
				<li><a href="#tab4">社保信息</a></li>
				<li><a href="#tab5">电话调查</a></li>
				<li><a href="#tab6">考察信息</a></li>
				<li><a href="#tab7">审核附件</a></li>
				<li><a href="#tab8">建议额度</a></li>
			</ul>
		</div>

		<div id="tab1" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>贷款基本信息</span></div>
				<form id="" name="">
				    <ul class="forminfo">
				    
				    	<li>
				    		<table class="newtablelist" id="">
						        <tbody>
							        <tr>
								        <td class="newtd">贷款申请号</td>
								        <td colspan="5"><span name="loanCode"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">贷款人</td>
								        <td><span name="loanBorrower"></span>&nbsp;</td>
								        <td class="newtd">身份证号</td>
								        <td><span name="clientCardId"></span>&nbsp;</td>
								        <td class="newtd">申请日期</td>
								        <td><span name="loanApplyDate@[yyyy-MM-dd]"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">来源渠道</td>
								        <td><span name="loanSource@Loan_Source_Code"></span>&nbsp;</td>
								        <td class="newtd">贷款类型</td>
								        <td><span name="loanType@Loan_Type_Code"></span>&nbsp;</td>
								        <td class="newtd">贷款产品</td>
								        <td><span name="loanProduct@Loan_Product_Code"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">业务性质</td>
								        <td><span name="loanNatureBusiness@Loan_Nature_Business_Code"></span>&nbsp;</td>
								        <td class="newtd">客户性质</td>
								        <td><span name="loanNatureClilent@Loan_Nature_Clilent_Code"></span>&nbsp;</td>
								        <td class="newtd">资金性质</td>
								        <td><span name="loanNatureFund@Loan_Nature_Fund_Code"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">贷款用途</td>
								        <td><span name="loanPurpose@Loan_Purpose_Code"></span>&nbsp;</td>
								        <td class="newtd">申请额度（元）</td>
								        <td><span name="loanLimitApply"></span>&nbsp;</td>
								        <td class="newtd">贷款期限（月）</td>
								        <td><span name="loanDeadlineApply"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">月利率（%）</td>
								        <td><span name="loanRateInterest"></span>&nbsp;</td>
								        <td class="newtd">管理费率（%）</td>
								        <td><span name="loanRateManage"></span>&nbsp;</td>
								        <td class="newtd">手续费率（%）</td>
								        <td><span name="loanRateHandling"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">还款方式</td>
								        <td><span name="loanRepayType@Loan_Repay_Type_Code"></span>&nbsp;</td>
								        <td class="newtd">贷款对象</td>
								        <td><span name="loanObject@Loan_Object_Code"></span>&nbsp;</td>
								        <td class="newtd">项目来源人</td>
								        <td><span name="loanSourceMan"></span>&nbsp;</td>
							        </tr>
							  	</tbody>
							</table>
				    	</li>
				    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
				    </ul>
			    </form>
			</div>
		</div>
		<div id="tab2" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>审核信息</span></div>
				<form id="auditForm" name="auditForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="auditId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
							<table class="newtablelist" id="">
						        <tbody>
							        <tr>
								        <td class="newtd">个人信息</td>
								        <td colspan="5"><span name="auditBase"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">工作收入信息</td>
								        <td colspan="5"><span name="auditWork"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">公司信息</td>
								        <td colspan="5"><span name="auditCompany"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">住址信息</td>
								        <td colspan="5"><span name="auditHouse"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">信用信息</td>
								        <td colspan="5"><span name="auditCredit"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">保全措施</td>
								        <td colspan="5"><span name="auditSafeMeasure"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">其它信息</td>
								        <td colspan="5"><span name="auditOther"></span>&nbsp;</td>
							        </tr>
							  	</tbody>
							</table>
				    	</li>
				    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
					</ul>
				</form>
			</div>
		</div>
		<div id="tab3" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>信用调查列表</span></div>
				<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="creditTable" width="100%"></table>
				<input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/>
				<%-- <div class="formtitle"><span>新增/编辑信用调查</span></div>
				<form id="creditForm" name="creditForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="creditId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
				    		<label>贷款方式：</label><label1><span name="loanType"></span>&nbsp;</label1><!-- Loan_Credit_Type_Code -->
				    		<label>放款方：</label><label1><span name="loanAccount"></span>&nbsp;</label1>
				    		<label>贷款总额：</label><label1><span name="loanAmount"></span>&nbsp;元</label1>
				    	</li>
						<li>
				    		<label>余额：</label><label1><span name="loanBalance"></span>&nbsp;元</label1>
				    		<label>贷款期限：</label><label1><span name="loanDeadline"></span>&nbsp;月</label1>
				    		<label>月供款额：</label><label1><span name="loanPayMonth"></span>&nbsp;元</label1>
				    	</li>
						<li>
				    		<label>放款日期：</label><label1><span name="loanStartDate"></span>&nbsp;</label1>
				    		<label>到期日期：</label><label1><span name="loanEndDate"></span>&nbsp;</label1>
				    		<label>信用贷款状态：</label><label1><span name="loanStatus"></span>&nbsp;</label1><!-- Loan_Credit_Status_Code -->
				    	</li>
						<li>
				    		<label>拖欠金额：</label><label1><span name="loanDefaultAmount"></span>&nbsp;元</label1>
				    		<label>信用卡张数：</label><label1><span name="loanCardSum"></span>&nbsp;张</label1>
				    	</li>

						<li>
							<label>备注：</label><label2><span name="loanRemark"></span>&nbsp;</label2>
						</li>
					</ul>
				</form>	 --%>
			</div>
		</div>
		
		<div id="tab4" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>社保信息</span></div>
				<form id="insureForm" name="insureForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="insureId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
							<table class="newtablelist" id="">
						        <tbody>
							        <tr>
								        <td class="newtd">参保总月数（月）</td>
								        <td><span name="insureMonthsSum"></span>&nbsp;</td>
								        <td class="newtd">该单位参保月数（月）</td>
								        <td><span name="insureMonthsUnit"></span>&nbsp;</td>
								        <td class="newtd">参保薪资（月）</td>
								        <td><span name="insurePay"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">最近一个月参保</td>
								        <td><span name="insureStatus@Loan_Insure_Status_Code"></span>&nbsp;</td>
								        <td class="newtd">养老保险</td>
								        <td><span name="insureEi@Loan_Insure_Status_Code"></span>&nbsp;</td>
								        <td class="newtd">医疗保险</td>
								        <td><span name="insureMi@Loan_Insure_Mi_Status_Code"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">生育保险</td>
								        <td><span name="insureBi@Loan_Insure_Status_Code"></span>&nbsp;</td>
								        <td class="newtd">住房保险</td>
								        <td><span name="insureEi@Loan_Insure_Status_Code"></span>&nbsp;</td>
								        <td class="newtd">工伤保险</td>
								        <td><span name="insureWi@Loan_Insure_Status_Code"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">失业保险</td>
								        <td><span name="insureCi@Loan_Insure_Status_Code"></span>&nbsp;</td>
								        <td class="newtd">参保公司数量</td>
								        <td><span name="insureCompanySum"></span>&nbsp;</td>
								        <td class="newtd">参保总人数（人）</td>
								        <td><span name="insurePersonSum"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">其他</td>
								        <td colspan="5"><span name="insureOther"></span>&nbsp;</td>
							        </tr>
							  	</tbody>
							</table>
				    	</li>
				    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
					</ul>
				</form>
			</div>
		</div>
		
		
		<div id="tab5" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>电话调查列表</span></div>
				<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="linkTable" width="100%"></table>
				<input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/>
				<%-- <div class="formtitle"><span>电话调查</span></div>
	
				<form id="linkForm" name="linkForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="linkId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<ul class="forminfo">
						<li>
				    		<label>联系人：</label><label1><span name="linkName"></span>&nbsp;</label1>
				    		<label>关系：</label><label1><span name="linkRelation"></span>&nbsp;</label1><!-- Loan_Link_Relation_Type_Code -->
				    		<label>来源：</label><label1><span name="linkSource"></span>&nbsp;</label1><!-- Loan_Link_Source_Code -->
				    	</li>
				    	<li>
				    		<label>电话号码：</label><label1><span name="linkTel"></span>&nbsp;</label1>
				    		<label>拨打时间：</label><label1><span name="linkTime"></span>&nbsp;</label1>
				    		<label>通话情况：</label><label1><span name="linkCallStatus"></span>&nbsp;</label1><!-- Loan_Link_Call_Status_Code -->
				    	</li>
						<li>
							<label>通话备注：</label><label2><span name="linkCallRemark"></span>&nbsp;</label2>
						</li>
					</ul>
				</form> --%>
			</div>
		</div>
		
		
		<div id="tab6" class="tabson">
		    <div class="formbody">
			   	<div class="formtitle">
					<span>附件信息列表</span>
				</div>
					<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="_inspect_detail"></table>

		    	<div class="formtitle"><span>考察信息详情</span></div>
				<form id="" name="" enctype="multipart/form-data" method="post">
	   				<ul class="forminfo">
	   					<li>
	   						<table class="newtablelist" id="">
						        <tbody>
							        <tr>
								        <td class="newtd">考察人员</td>
								        <td><span name="inspectUserName"></span>&nbsp;</td>
								        <td class="newtd">考察费用（元）</td>
								        <td colspan="3"><span name="inspectFee"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">待考察事项</td>
								        <td colspan="5"><span name="inspectItem"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">考察记录</td>
								        <td colspan="5"><span name="inspectRecord"></span>&nbsp;</td>
							        </tr>
								</tbody>
							</table>
				    	</li>
				    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
	 	 			</ul>
	  			</form>
			</div>
		</div>
		
		
		
		<div id="tab7" class="tabson">
			<div class="formbody">
				<div class="formtitle">
					<span>附件信息列表</span>
				</div>
				<div class="toolsli">
					<table cellpadding="0" cellspacing="0" border="0" class="tablelist"
						id="inspectTable" width="100%"></table>
				</div>
				<input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/>
			</div>
			<%@include file="/jsp/common/common_dialog.jsp"%>
		</div>
		
		<div id="tab8" class="tabson">
			<div class="formbody">
				<div class="formtitle"><span>建议额度</span></div>
				<form id="sugForm" name="sugForm" enctype="multipart/form-data" method="post">
					<input type="hidden" name="id" id="sugId" value="" />
					<input type="hidden" name="loanId" value="${param.loanId}" />
					<input type="hidden" name="sugUserId" value="${user.id}" />
					<ul class="forminfo">
						<li>
							<table class="newtablelist" id="">
						        <tbody>
							        <tr>
								        <td class="newtd">建议额度（元）</td>
								        <td><span name="sugLimit"></span>&nbsp;</td>
								        <td class="newtd">建议期限（月）</td>
								        <td><span name="sugDeadline"></span>&nbsp;</td>
								        <td class="newtd">建议月利率（%）</td>
								        <td><span name="sugRate"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">建议管理费率（%）</td>
								        <td><span name="sugRateManage"></span>&nbsp;</td>
								        <td class="newtd">建议手续费率（%）</td>
								        <td colspan="3"><span name="sugRateHandling"></span>&nbsp;</td>
							        </tr>
							        <tr>
								        <td class="newtd">建议备注</td>
								        <td colspan="5"><span name="sugRemark"></span>&nbsp;</td>
							        </tr>
							 	</tbody>
							</table>
				    	</li>
				    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
					</ul>
				</form>
			</div>
		</div>
	</div>
	
</body>
</html>
